package com.example.myapplication2;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity2 extends AppCompatActivity {

    Bundle bundle;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mian2);

        Intent intent2 = getIntent();
        bundle =intent2.getExtras();
        String string = bundle.getString("name");
        Integer string2 = bundle.getInt("age");

//        Toast.makeText(this,string+string2,Toast.LENGTH_SHORT).show();

        setResult(88);
    }
}
